package com.google.format;

import java.io.BufferedReader;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;

public class Converter {
  private final static String DIR = "/home/liluyang/program/xbox/googleclient/video/youtube/xbox/Google.YouTube/Test/Ads";

  public static void main(String[] args) {
    new Converter().run();
  }
  
  private void run() {
    try {
      BufferedReader br = new BufferedReader(new FileReader(DIR + "/adsense-vast.xml.orig"));
      PrintWriter pw = new PrintWriter(new FileOutputStream(DIR + "/adsense-vast.xml"));
      
      String line = null;
      while ((line = br.readLine()) != null) {
        System.out.println(line);
        pw.print(line+"\r\n");
      }
        
      br.close();
      pw.close();
    } catch (IOException e) {
      e.printStackTrace();
    }
  }

}
